package org.demo.patten.abstract_factory;

/**
 * @author zhuj
 * @date 2025/3/21
 * @apiNote
 * 抽象工厂模式
 */
public class Test {
    public static void main(String[] args) {
        GUIFactory factory = new MacFactory();
        Button button = factory.createButton();
        button.click(); // MacButton Clicked
        TextField textField = factory.createTextField();
        textField.input();
    }
}
